C Programming Language

User-Defined Functions

A function is a block of code that performs a specific task.

The function contains the set of programming statements enclosed by { }.

The function is also known as procedure or subroutinein

Advantage of C Functions

  • By using functions, we can avoid rewriting same logic/code again and in a
  • we